<h1>编辑栏目</h1>

<% form_for(@category) do |f| %>
  <%= f.error_messages %>
  <%= render :partial => "form", :object => f %>
  <p>
    <%= f.submit '更新' %>
  </p>
<% end %>

<%= link_to_remote '浏览', :update => 'content', :method => :get, :url => @category %> |
<%= link_to_remote '返回', :update => 'content', :method => :get, :url => categories_path %>
